import axios from 'axios'

axios.defaults.baseURL = 'http://localhonst:3031'

export const getLangData = () => {
  return axios.get('http://localhost:3031/get')
}

export const setLangData = option => {
  return axios.post('http://localhost:3031/set', option, {
    headers: {
      'Content-Type': 'application/json;charset=utf-8',
    },
  })
}
